AppFlag

class AppFlag(val title: String, val key: String, val description: String, val defaultValue: Boolean)

An individual "feature flag". I recommend creating, in your project-specific code, a kotlin global object that registers all of the known flags for your app:

object MyAppFlags { val featureA = AppFlag("Feature A", "feature_a", "If enabled, turn on feature A", true) val featureB = AppFlag("Feature B", "feature_b", "If enabled, turn on feature B", false) }

Constructors

Link copied to clipboard
constructor(title: String, key: String, description: String, defaultValue: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val key: String
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String